import { axios } from '../http/request'

// 获取视频分类列表 /video/category/list
// 获取视频标签列表 /video/group/list
export const getVideoCategoryData = () => {
    return axios({
        url: '/list.json',
        method: 'get',
    })
}

// 获取分类下的视频 /video/group?id=9104
export const getVideoListData = (id: number) => {
    return axios({
        // url: `/api/video/group?id=${id}`,
        url: `https://apis.netstart.cn/music/video/group?id=${id}`,
        method: 'get',
    })
}

// 获取视频标签列表 /video/group/list
export const getVideoGroupListData = () => {
    return axios({
        url: `/api/video/group/list`,
        method: 'get',
    })
}


// 获取视频播放地址 /video/url?id=89ADDE33C0AAE8EC14B99F6750DB954D
export const getVideoUrlData = (vid: string) => {
    return axios({
        url: `/api/video/url?id=${vid}`,
        method: 'get',
    })
}